package com.njlime.cms.service.app;

import com.njlime.cms.repository.app.AppChannelDao;
import com.njlime.cms.repository.app.AppColumnDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 频道栏目
 * Created by Dean on 2017-10-16.
 */
@Service
public class AppChannelService {

    @Resource
    private AppChannelDao appChannelDao;
    @Resource
    private AppColumnDao appColumnDao;

    /**
     * 获取频道列表
     * @param unit_id
     * @return
     */
    public List<Map<String,Object>> getChannelList(int unit_id){
        return appChannelDao.getChannelList(unit_id);
    }

    /**
     * 获取栏目列表
     * @param channelId
     * @return
     */
    public List<Map<String,Object>> columnList(int channelId,String unitId){
        return appColumnDao.columnList(channelId,unitId);
    }
}
